1700
How do I layout expandable columns

axG2antt1.BeginUpdate();
axG2antt1.ColumnAutoResize = false;
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
axG2antt1.BackColorLevelHeader = axG2antt1.BackColor;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("C0") as EXG2ANTTLib.Column);
		var_Column.ExpandColumns = "1,2";
		var_Column.DisplayExpandButton = true;
	var_Columns.Add("C1");
	var_Columns.Add("C2");
	var_Columns.Add("C3");
	EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("C4") as EXG2ANTTLib.Column);
		var_Column1.ExpandColumns = "5,6";
		var_Column1.DisplayExpandButton = true;
	var_Columns.Add("C5");
	EXG2ANTTLib.Column var_Column2 = (var_Columns.Add("C6") as EXG2ANTTLib.Column);
		var_Column2.ExpandColumns = "6,7";
		var_Column2.DisplayExpandButton = true;
	var_Columns.Add("C7");
axG2antt1.EndUpdate();
axG2antt1.Columns["C4"].Expanded = false;

1699
Is it possible to display automatically the start/end margins of the bars

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%1%>");
		var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16);
		var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaption,"<%=%2%>");
		var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarExtraCaptionHAlign,18);
	var_Chart.ScrollTo(var_Chart.FirstVisibleDate,1);
axG2antt1.Columns.Add("Task");
(axG2antt1.Columns.Add("ToolTip") as EXG2ANTTLib.Column).Visible = false;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.set_CellValue(h,1,"bar <b>a");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Item 2");
	var_Items.set_CellValue(h,1,"bar <b>b");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("12/30/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1698
Is it possible to assign the bar's caption from a hidden column

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<%=%C1%>");
		var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
axG2antt1.Columns.Add("Task");
(axG2antt1.Columns.Add("ToolTip") as EXG2ANTTLib.Column).Visible = false;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.set_CellValue(h,1,"bar <b>a");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Item 2");
	var_Items.set_CellValue(h,1,"bar <b>b");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1697
Is it possible to assign the bar's tooltip from a hidden column

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	var_Chart.Bars["Task"].set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarToolTip,"<%=%C1%>");
axG2antt1.Columns.Add("Task");
(axG2antt1.Columns.Add("ToolTip") as EXG2ANTTLib.Column).Visible = false;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.set_CellValue(h,1,"This is a bit of text that's shown when the cursor hovers the bar on item 1.");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Item 2");
	var_Items.set_CellValue(h,1,"This is a bit of text that's shown when the cursor hovers the bar on item 2.");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1696
I am using exBarFrameColor, but no black frame is shown. What could be wrong (method 2)

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Default");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,65536);
axG2antt1.EndUpdate();

1695
I am using exBarFrameColor, but no black frame is shown. What could be wrong (method 1)

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.Bars["Task"].set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,65536);
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Default"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1694
What I need is bars that have a solid color, but with a black frame. How can we do that

axG2antt1.BeginUpdate();
axG2antt1.DefaultItemHeight = 22;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,0);
EXG2ANTTLib.Bar var_Bar = axG2antt1.Chart.Bars.Add("Frame");
	var_Bar.Pattern = EXG2ANTTLib.PatternEnum.exPatternSolid;
	var_Bar.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
	var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,65536);
	var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<font ;6><%=%C0%>");
	var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	var_Bar.Height = 15;
axG2antt1.Columns.Add("Frames");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Default"),"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h = var_Items.AddItem("Inside Color");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
	h = var_Items.AddItem("Border Color");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33023);
	h = var_Items.AddItem("Inside/Border Color");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,16711680);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33023);
	h = var_Items.AddItem("Thick-Border");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarPattern,4097);
	h = var_Items.AddItem("Thick-Border + Pattern");
	var_Items.AddBar(h,"Frame",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarPattern,4098);
axG2antt1.EndUpdate();

1693
How can we drag bars from one item to the other

axG2antt1.BeginUpdate();
axG2antt1.DefaultItemHeight = 22;
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
(axG2antt1.Columns.Add("Members") as EXG2ANTTLib.Column).set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("9/20/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.AllowLinkBars = false;
	var_Chart.AllowCreateBar = EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.AllowSelectObjects = EXG2ANTTLib.SelectObjectsEnum.exNoSelectObjects;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,96);
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.OverlaidType = EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsIncludeCaption | EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStackAutoArrange | EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsStack;
		var_Bar.Height = 18;
		var_Bar.Pattern = EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,128,255));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Member <b>1</b>");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T102","<font ;6><fgcolor FFFFFF>Task <b>102</b>");
	var_Items.set_ItemBar(h,"T102",EXG2ANTTLib.ItemBarPropertyEnum.exBarCanMoveToAnother,true);
	h = var_Items.AddItem("Member <b>2</b>");
	h = var_Items.AddItem("Member <b>3</b>");
	h = var_Items.AddItem("Member <b>4</b>");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("9/21/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("9/23/2006",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T103","<font ;6><fgcolor FFFFFF>Task <b>103</b>");
	var_Items.set_ItemBar(h,"T103",EXG2ANTTLib.ItemBarPropertyEnum.exBarCanMoveToAnother,true);
axG2antt1.EndUpdate();

1692
How can I use the exBarBackgroundExt option of the Items.ItemBar property

axG2antt1.BeginUpdate();
axG2antt1.DefaultItemHeight = 26;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.NonworkingDays = 0;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.Bars["Task"].Height = 22;
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Border-Top");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[3,back=RGB(0,0,0)]");
	h = var_Items.AddItem("Border-Bottom");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"bottom[3,back=RGB(255,0,0)]");
	h = var_Items.AddItem("Border-Left");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[6,back=RGB(0,255,0)]");
	h = var_Items.AddItem("Border-Right");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"right[6,back=RGB(0,0,255)]");
	h = var_Items.AddItem("Border-All");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[3,back=RGB(0,0,0)],right[3,back=RGB(0,0,255)],bottom[3,back=RGB(255,0,0)],left[3,back=RGB(0,255,0)],client");
	h = var_Items.AddItem("Middle");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(25%,25%,50%,50%),back=RGB(255,0,0)]");
	h = var_Items.AddItem("Horizontal");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(0,50%-2,100%,4),back=RGB(255,0,0)]");
	h = var_Items.AddItem("Vertical");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"none[(50%-2,0,4,100%),back=RGB(255,0,0)]");
	h = var_Items.AddItem("Mixt");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"[[patterncolor=RGB(255,0,0)](none[(4,4,100%-8,100%-8),pattern=0x006,patterncolor=RGB(255,0,0),frame=RGB(255,0,0),framethick])]");
	h = var_Items.AddItem("Misc");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"bottom[50%,pattern=10,frame]");
	h = var_Items.AddItem("Complex");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[10%](top[90%,back=RGB(0,0,0)]),top[30%,back=RGB(254,217,102)],client[back=RGB(91,156,212)]");
axG2antt1.EndUpdate();

1691
Does the title of the cell's tooltip supports HTML format

axG2antt1.BeginUpdate();
axG2antt1.Chart.set_PaneWidth(true,0);
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("") as EXG2ANTTLib.Column);
	var_Column.Caption = "";
	var_Column.HTMLCaption = "Column";
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_CellToolTip(var_Items.AddItem("tooltip w/h different title"),0,"<c><b><fgcolor=FF0000>Title</fgcolor></b><br>This is bit of text that's shown when the user hovers the cell. This shows the tit" +
"le centered with a different color.");
axG2antt1.EndUpdate();

1690
How do I specify a different title for the cell's tooltip

axG2antt1.BeginUpdate();
axG2antt1.Chart.set_PaneWidth(true,0);
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("") as EXG2ANTTLib.Column);
	var_Column.Caption = "This is the title";
	var_Column.HTMLCaption = "Column";
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_CellToolTip(var_Items.AddItem("tooltip w/h different title"),0,"This is bit of text that's shown when the user hovers the cell.");
axG2antt1.EndUpdate();

1689
The cell's tooltip displays the column's caption in its title. How can I get ride of that

axG2antt1.BeginUpdate();
axG2antt1.Chart.set_PaneWidth(true,0);
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("C1");
	var_Columns.Add("C2");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("tooltip w/h caption");
	var_Items.set_CellToolTip(h,0,"This is bit of text that's shown when the user hovers the cell. This shows the column's caption in the title.");
	var_Items.set_CellValue(h,1,"tooltip no caption");
	var_Items.set_CellToolTip(h,1,"This is bit of text that's shown when the user hovers the cell. This shows no column's caption in the title.");
EXG2ANTTLib.Column var_Column = axG2antt1.Columns["C2"];
	var_Column.HTMLCaption = var_Column.Caption;
	var_Column.Caption = "";
axG2antt1.EndUpdate();

1688
How can I programmatically show the column's filter

// RClick event - Fired when right mouse button is clicked
private void axG2antt1_RClick(object sender, EventArgs e)
{
	// Columns(c).ShowFilter("-1,-1,128,128")
	int i = axG2antt1.get_ItemFromPoint(-1,-1,c,hit);
}
//this.axG2antt1.RClick += new EventHandler(this.axG2antt1_RClick);

axG2antt1.BeginUpdate();
axG2antt1.ShowFocusRect = false;
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Items ") as EXG2ANTTLib.Column);
	var_Column.DisplayFilterPattern = false;
	var_Column.FilterList = EXG2ANTTLib.FilterListEnum.exShowExclude | EXG2ANTTLib.FilterListEnum.exShowFocusItem | EXG2ANTTLib.FilterListEnum.exShowCheckBox;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem("Item 1");
	var_Items.AddItem("Item 2");
	var_Items.AddItem("Item 3");
axG2antt1.EndUpdate();

1687
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 2)

// ColumnClick event - Fired after the user clicks on column's header.
private void axG2antt1_ColumnClick(object sender, AxEXG2ANTTLib._IG2anttEvents_ColumnClickEvent e)
{
	// Column.SortOrder = 1
	axG2antt1.SortOnClick = EXG2ANTTLib.SortOnClickEnum.exDefaultSort;
	axG2antt1.Columns["Sort"].SortOrder = EXG2ANTTLib.SortOrderEnum.SortAscending;
	axG2antt1.SortOnClick = EXG2ANTTLib.SortOnClickEnum.exUserSort;
}
//this.axG2antt1.ColumnClick += new AxEXG2ANTTLib._IG2anttEvents_ColumnClickEventHandler(this.axG2antt1_ColumnClick);

axG2antt1.BeginUpdate();
axG2antt1.SortOnClick = EXG2ANTTLib.SortOnClickEnum.exUserSort;
axG2antt1.Columns.Add("Items");
(axG2antt1.Columns.Add("Sort") as EXG2ANTTLib.Column).Visible = false;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_CellValue(var_Items.AddItem("Item 1 (3)"),1,3);
	var_Items.set_CellValue(var_Items.AddItem("Item 2 (1)"),1,1);
	var_Items.set_CellValue(var_Items.AddItem("Item 3 (2)"),1,2);
axG2antt1.EndUpdate();

1686
I want to be able to click on one of the headers, and sort by other column. How can I do that (method 1)

// ColumnClick event - Fired after the user clicks on column's header.
private void axG2antt1_ColumnClick(object sender, AxEXG2ANTTLib._IG2anttEvents_ColumnClickEvent e)
{
	// Column.SortOrder = 1
	axG2antt1.Items.SortChildren(0,"Sort",true);
}
//this.axG2antt1.ColumnClick += new AxEXG2ANTTLib._IG2anttEvents_ColumnClickEventHandler(this.axG2antt1_ColumnClick);

axG2antt1.BeginUpdate();
axG2antt1.SortOnClick = EXG2ANTTLib.SortOnClickEnum.exUserSort;
axG2antt1.Columns.Add("Items");
(axG2antt1.Columns.Add("Sort") as EXG2ANTTLib.Column).Visible = false;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_CellValue(var_Items.AddItem("Item 1 (3)"),1,3);
	var_Items.set_CellValue(var_Items.AddItem("Item 2 (1)"),1,1);
	var_Items.set_CellValue(var_Items.AddItem("Item 3 (2)"),1,2);
axG2antt1.EndUpdate();

1685
How do I get information about control's events
// Event event - Notifies the application once the control fires an event.
private void axG2antt1_Event(object sender, AxEXG2ANTTLib._IG2anttEvents_EventEvent e)
{
	System.Diagnostics.Debug.Print( axG2antt1.ExecuteTemplate("EventParam(-2)").ToString() );
}
//this.axG2antt1.Event += new AxEXG2ANTTLib._IG2anttEvents_EventEventHandler(this.axG2antt1_Event);

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.AllowLinkBars = false;
	var_Chart.Bars["Task"].OverlaidType = EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsTransparent | EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsOffset;
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Item 1");
	var_Items.set_EnableItem(h,false);
	var_Items.set_ItemData(h,-1);
	h = var_Items.AddItem("Item 2");
	var_Items.set_ItemData(h,0);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B",null);
	var_Items.set_ItemBar(h,"B",EXG2ANTTLib.ItemBarPropertyEnum.exBarCanMoveToAnother,true);
	var_Items.set_ItemData(var_Items.AddItem("Item 3"),0);
	h = var_Items.AddItem("Item 4");
	var_Items.set_EnableItem(h,false);
	var_Items.set_ItemData(h,-1);
axG2antt1.EndUpdate();

1684
How can I sort by two-columns, one by date and one by time

axG2antt1.BeginUpdate();
axG2antt1.SingleSort = false;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	(var_Columns.Add("Index") as EXG2ANTTLib.Column).FormatColumn = "1 index ``";
	(var_Columns.Add("Date") as EXG2ANTTLib.Column).SortType = EXG2ANTTLib.SortTypeEnum.SortDate;
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("Time") as EXG2ANTTLib.Column);
		var_Column.SortType = EXG2ANTTLib.SortTypeEnum.SortTime;
		var_Column.FormatColumn = "time(value)";
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	h = var_Items.AddItem(0);
	var_Items.set_CellValue(h,1,Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.set_CellValue(h,2,Convert.ToDateTime("1/1/2001 6:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axG2antt1.Layout = "multiplesort=\"C1:1 C2:1\"";
axG2antt1.EndUpdate();

1683
I am trying to hide the non-working dates by using the AddNonworkingDate to specify custom non-working dates while NonworkingDays property is 0, but the non-working date is still shown. What can be wrong

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.ShowNonworkingUnits = false;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.NonworkingDays = 128;
	var_Chart.AddNonworkingDate(Convert.ToDateTime("1/7/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.AddNonworkingDate(Convert.ToDateTime("1/8/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.AddNonworkingDate(Convert.ToDateTime("1/9/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.AddNonworkingDate(Convert.ToDateTime("1/10/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axG2antt1.EndUpdate();

1682
How can I display the task's duration, in days, hours and minutes

axG2antt1.BeginUpdate();
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Tasks") as EXG2ANTTLib.Column);
	var_Column.AllowSizing = false;
	var_Column.Width = 36;
EXG2ANTTLib.Column var_Column1 = (axG2antt1.Columns.Add("Duration") as EXG2ANTTLib.Column);
	var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,513);
	var_Column1.FormatColumn = "((1:=int(0:= (value))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 " +
"? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')";
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,148);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("4/6/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exHour;
	var_Chart.ResizeUnitScale = EXG2ANTTLib.UnitEnum.exMinute;
axG2antt1.Items.AllowCellValueToItemBar = true;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("T1"),"Task",Convert.ToDateTime("4/6/2009 2:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("4/6/2009 12:35:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("T2"),"Task",Convert.ToDateTime("4/6/2009 9:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("4/6/2009 10:10:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1681
Does your control support working half-hour/minutes/seconds

axG2antt1.BeginUpdate();
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Tasks") as EXG2ANTTLib.Column);
	var_Column.AllowSizing = false;
	var_Column.Width = 36;
EXG2ANTTLib.Column var_Column1 = (axG2antt1.Columns.Add("Working") as EXG2ANTTLib.Column);
	var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,258);
	var_Column1.FormatColumn = "((1:=int(0:= (value))) != 0 ? (=:1 + ' day(s)') : '') + (=:1 ? ' ' : '' ) + ((1:=int(0:=((=:0 - =:1 + 1/24/60/60/2)*24))) != 0 " +
"? =:1 + ' hour(s)' : '' ) + (=:1 ? ' ' : '' ) + ((1:=round((=:0 - =:1)*60)) != 0 ? =:1 + ' min(s)' : '')";
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("4/6/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,148);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exHour;
	var_Chart.ResizeUnitScale = EXG2ANTTLib.UnitEnum.exMinute;
	var_Chart.ResizeUnitCount = 15;
	var_Chart.NonworkingHours = 15728767;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.ShowNonworkingUnits = false;
	var_Chart.ShowNonworkingHours = false;
	EXG2ANTTLib.Bars var_Bars = var_Chart.Bars;
		var_Bars.Add("Task:Split").Shortcut = "Task";
		var_Bars["Task"].set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
	var_Chart.AllowLinkBars = false;
	var_Chart.UnitWidth = 26;
axG2antt1.Items.AllowCellValueToItemBar = true;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("T1");
	var_Items.set_ItemNonworkingUnits(h,false,"(weekday(value) in (1,2,3,4,5) and (timeF(value)<\"09:30\"  or timeF(value)>=\"17:30\")) or (weekday(value) in (0,6))");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("4/6/2009 10:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("4/6/2009 12:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("T2");
	var_Items.set_ItemNonworkingUnits(h,false,"(weekday(value) in (1,2,3,4,5) and (timeF(value)<\"08:00\"  or timeF(value)>=\"16:00\")) or (weekday(value) in (0,6))");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("4/6/2009 9:30:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("4/6/2009 10:45:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1680
How can I programmatically move a bar to a specified date-time
axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Original");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	h = var_Items.AddItem("Moved");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	object duration = var_Items.get_ItemBar(h,"key",EXG2ANTTLib.ItemBarPropertyEnum.exBarDuration);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	var_Items.set_ItemBar(h,"key",EXG2ANTTLib.ItemBarPropertyEnum.exBarDuration,duration);
axG2antt1.EndUpdate();

1679
How can I programmatically move a bar, with a specified ammount
axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Original");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	h = var_Items.AddItem("Moved");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	var_Items.set_ItemBar(h,"key",EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,3);
axG2antt1.EndUpdate();

1678
How can I programmatically move a bar to a specified date-time (auto-adjust spans over a non-working period)

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	EXG2ANTTLib.Bars var_Bars = var_Chart.Bars;
		var_Bars["Task"].set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
		var_Bars.Add("Task:Split").Shortcut = "Task";
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Original");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	h = var_Items.AddItem("Moved");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	object workingCount = var_Items.get_ItemBar(h,"key",EXG2ANTTLib.ItemBarPropertyEnum.exBarWorkingCount);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	var_Items.set_ItemBar(h,"key",EXG2ANTTLib.ItemBarPropertyEnum.exBarWorkingCount,workingCount);
axG2antt1.EndUpdate();

1677
How can I programmatically move a bar, with a specified ammount (auto-adjust spans over a non-working period)

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,64);
	EXG2ANTTLib.Bars var_Bars = var_Chart.Bars;
		var_Bars["Task"].set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
		var_Bars.Add("Task:Split").Shortcut = "Task";
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Original");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	h = var_Items.AddItem("Moved");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"key",null);
	var_Items.set_ItemBar(h,"key",EXG2ANTTLib.ItemBarPropertyEnum.exBarMove,3);
axG2antt1.EndUpdate();

1676
How can I show a secondary curve, line in the control's histogram

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Tasks");
axG2antt1.AntiAliasing = true;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 8;
		var_Bar.HistogramRulerLinesColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,1));
	var_Chart.get_Level(1).Label = "<font ;3><%d%>";
	var_Chart.UnitWidth = 9;
	EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars["Summary"];
		var_Bar1.HistogramPattern = EXG2ANTTLib.PatternEnum.exRoundCurve;
		var_Bar1.HistogramColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
		var_Bar1.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar1.HistogramItems = 8;
		var_Bar1.HistogramBorderSize = 1;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_LockedItemCount(EXG2ANTTLib.VAlignmentEnum.exTop,1);
	int h = var_Items.get_LockedItem(EXG2ANTTLib.VAlignmentEnum.exTop,0);
	var_Items.set_ItemHeight(h,0);
	var_Items.AddBar(h,"Summary",Convert.ToDateTime("1/1/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("12/31/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"1",null);
	var_Items.set_ItemBar(h,"1",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"(value mod 31) array (1,1,1,2,1,2.5,3,4,5,4,3,2,1,2,2,3,4.5,4,5,6,7,6,1,2,3,1,1,1,2,3,2,2)");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) in (0,6) ? 0.25 : 2");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/18/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) = 1 ? 2.5 : .5");
axG2antt1.EndUpdate();

1675
How can I add an owner-draw bar
// AfterDrawPart event - Occurs right after drawing the part of the control.
private void axG2antt1_AfterDrawPart(object sender, AxEXG2ANTTLib._IG2anttEvents_AfterDrawPartEvent e)
{
	System.Diagnostics.Debug.Print( "AfterDrawPart" );
	System.Diagnostics.Debug.Print( e.part.ToString() );
	System.Diagnostics.Debug.Print( axG2antt1.Items.get_CellCaption(axG2antt1.DrawPartItem,0) );
	System.Diagnostics.Debug.Print( axG2antt1.DrawPartKey.ToString() );
}
//this.axG2antt1.AfterDrawPart += new AxEXG2ANTTLib._IG2anttEvents_AfterDrawPartEventHandler(this.axG2antt1_AfterDrawPart);

// BeforeDrawPart event - Occurs just before drawing a part of the control.
private void axG2antt1_BeforeDrawPart(object sender, AxEXG2ANTTLib._IG2anttEvents_BeforeDrawPartEvent e)
{
	e.cancel = true;
	System.Diagnostics.Debug.Print( "BeforeDrawPart" );
	System.Diagnostics.Debug.Print( e.part.ToString() );
	System.Diagnostics.Debug.Print( axG2antt1.Items.get_CellCaption(axG2antt1.DrawPartItem,0) );
	System.Diagnostics.Debug.Print( axG2antt1.DrawPartKey.ToString() );
}
//this.axG2antt1.BeforeDrawPart += new AxEXG2ANTTLib._IG2anttEvents_BeforeDrawPartEventHandler(this.axG2antt1_BeforeDrawPart);

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.Bars.Add("OwnerDraw");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Draw-Item-Bar-1"),"OwnerDraw",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.AddBar(var_Items.AddItem("Draw-Item-Bar-2"),"OwnerDraw",Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(0,"<*>",EXG2ANTTLib.ItemBarPropertyEnum.exBarSelected,true);
axG2antt1.EndUpdate();

1674
Is it possible to show a status left or right to the bar (method 2, exBarFrameColor, EBN)

axG2antt1.BeginUpdate();
EXG2ANTTLib.Appearance var_Appearance = axG2antt1.VisualAppearance;
	var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAChABP0IQAAYAQGKIaBoAKBQAGaAoDDYMQyQwAAxDOKsEwsACEIrjKCRShyCYZRrGUQyAKESRAGyTJBlKKodgOLYYSrFcgSIAsEhqGASRZGUBIJ" +
"DEMI4AJPIwxNIDfyNGKWI6gOQKIoSCYlU7IED0fQNGxVF6XaYqYAIRDINQlVzXcQzPYEbRxCKLKppWqIfpuSIBgI=");
	var_Appearance.Add(1,"CP:2 -8 -1 0 0");
	var_Appearance.Add(3,"CP:2 0 -1 0 0");
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Red-Status-Outside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,16777471);
	h = var_Items.AddItem("Blue-Status-Outside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33488896);
	h = var_Items.AddItem("Red-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,50331903);
	h = var_Items.AddItem("Blue-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,67043328);
axG2antt1.EndUpdate();

1673
Is it possible to show a status left or right to the bar (method 1, exBarBackgroundExt)

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Red-Left-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[6,back=RGB(255,0,0)]");
	h = var_Items.AddItem("Blue-Left-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[6,back=RGB(0,0,255)]");
	h = var_Items.AddItem("Red-Right-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"right[6,back=RGB(255,0,0)]");
	h = var_Items.AddItem("Blue-Right-Status-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"right[6,back=RGB(0,0,255)]");
axG2antt1.EndUpdate();

1672
How can I use the ItemBar(exBarBackgroundExt) property for a bar

axG2antt1.BeginUpdate();
axG2antt1.DefaultItemHeight = 31;
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
axG2antt1.GridLineColor = Color.FromArgb(224,224,224);
axG2antt1.BackColorLevelHeader = axG2antt1.BackColor;
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.get_Level(0).GridLineColor = axG2antt1.GridLineColor;
	var_Chart.get_Level(1).GridLineColor = axG2antt1.GridLineColor;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
	var_Chart.Bars["Task"].Height = 21;
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Normal");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	h = var_Items.AddItem("Red-Frame-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"[frame=RGB(255,0,0),framethick]");
	h = var_Items.AddItem("LR-Margins");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[4,back=RGB(0,255,0)],right[4,back=RGB(0,0,255)]");
	h = var_Items.AddItem("LR-Margins (front)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[4,back=RGB(0,255,0)],right[4,back=RGB(0,0,255)]");
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
	h = var_Items.AddItem("LR-Margins (back)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"left[4,back=RGB(0,255,0)],right[4,back=RGB(0,0,255)]");
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,3);
	h = var_Items.AddItem("TB-Margins");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[4,back=RGB(255,0,0)],bottom[4,back=RGB(0,255,0)]");
	h = var_Items.AddItem("TB-Margins");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[2,back=RGB(255,0,0)],bottom[2,back=RGB(0,255,0)]");
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
	h = var_Items.AddItem("Caption(back)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"client(bottom[14,text=`<sha ;;0><font ;8>background`,align=0x11])");
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
	h = var_Items.AddItem("Pattern-Outside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"bottom[10%,pattern=7,frame]");
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,2);
	h = var_Items.AddItem("Pattern-Inside");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/13/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"bottom[7,pattern=3,frame]");
	h = var_Items.AddItem("Pattern-Inside-Caption");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[4](left[4],right[4],client),bottom[4](left[4],right[4],client),left[4],right[4],client(left[75%,text=`<fgcolor FFFFFF>75%`," +
"align=0x11,pattern=0x001,frame=RGB(255,0,0)])");
	h = var_Items.AddItem("Complex(back)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[30%,back=RGB(253,218,101)],client[back=RGB(91,157,210)],none[(0%,0%,10%,100%)](top[90%,back=RGB(0,0,0)])");
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExtFlags,3);
	h = var_Items.AddItem("Complex(inside)");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarBackgroundExt,"top[30%,back=RGB(253,218,101)],client[back=RGB(91,157,210)],none[(0%,0%,10%,100%)](top[90%,back=RGB(0,0,0)])");
axG2antt1.EndUpdate();

1671
How can display seconds

EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,96);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/17/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exSecond;
	var_Chart.get_Level(0).Alignment = EXG2ANTTLib.AlignmentEnum.exHOutside | EXG2ANTTLib.AlignmentEnum.CenterAlignment;
	var_Chart.get_Level(1).FormatLabel = "(0:=sec(dvalue)) mod 10 ? 0=: : '<c><font ;6>sec<br><b>' + 0=:";
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/17/2008 0:00:02",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2008 0:00:08",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/17/2008 0:00:05",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2008 0:00:15",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);

1670
How can I check if an item contains a bar
// SelectionChanged event - Fired after a new item has been selected.
private void axG2antt1_SelectionChanged(object sender, EventArgs e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		System.Diagnostics.Debug.Print( "Count of A: " );
		System.Diagnostics.Debug.Print( var_Items.get_ItemBar(var_Items.FocusItem,"A",EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() );
		System.Diagnostics.Debug.Print( "Count of B: " );
		System.Diagnostics.Debug.Print( var_Items.get_ItemBar(var_Items.FocusItem,"B",EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() );
		System.Diagnostics.Debug.Print( "Count of C: " );
		System.Diagnostics.Debug.Print( var_Items.get_ItemBar(var_Items.FocusItem,"C",EXG2ANTTLib.ItemBarPropertyEnum.exBarsCount).ToString() );
}
//this.axG2antt1.SelectionChanged += new EventHandler(this.axG2antt1_SelectionChanged);

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	var_Chart.Bars["Task"].set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","A");
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","B");
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","C");
axG2antt1.EndUpdate();

1669
How can I connect to a DBF file
axG2antt1.BeginUpdate();
axG2antt1.ColumnAutoResize = false;
axG2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Select * From foxcode.DBF","Provider=vfpoledb;Data Source=C:\\Program Files\\Microsoft Visual FoxPro 9\\",ADODB.CursorTypeEnum.adOpenStatic,ADODB.LockTypeEnum.adLockOptimistic,0);
axG2antt1.DataSource = (rs as ADODB.Recordset);
axG2antt1.Chart.set_PaneWidth(true,0);
axG2antt1.EndUpdate();

1668
How do I get the caption with no HTML format

axG2antt1.Columns.Add("Default");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("This is a bit of <b>HTML-formatted</b> text");
	var_Items.set_CellValueFormat(h,0,EXG2ANTTLib.ValueFormatEnum.exHTML);
	var_Items.AddItem(var_Items.get_CellCaption(h,0));

1667
How can I change the bar's color based on its length/duration

axG2antt1.BeginUpdate();
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("Tasks");
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("Duration") as EXG2ANTTLib.Column);
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,513);
		var_Column.Editor.EditType = EXG2ANTTLib.EditTypeEnum.SpinType;
axG2antt1.Items.AllowCellValueToItemBar = true;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/6/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = axG2antt1.ConditionalFormats.Add("%1 >= 4",null);
	var_ConditionalFormat.ApplyTo = (EXG2ANTTLib.FormatApplyToEnum)0x1;
	var_ConditionalFormat.Bold = true;
	var_ConditionalFormat.ApplyToBars = "Task";
	var_ConditionalFormat.BarColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
	var_ConditionalFormat.ForeColor = var_ConditionalFormat.BarColor;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/13/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axG2antt1.EndUpdate();

1666
Is it possible to colorize the bars based on its starting/ending date

axG2antt1.BeginUpdate();
axG2antt1.OnResizeControl = EXG2ANTTLib.OnResizeControlEnum.exDisableSplitter | EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("Tasks");
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as EXG2ANTTLib.Column);
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Visible = false;
axG2antt1.Items.AllowCellValueToItemBar = true;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("5/31/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.AllowInsideZoom = true;
	var_Chart.AllowResizeInsideZoom = false;
	var_Chart.InsideZoomOnDblClick = false;
	EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.PatternChart = EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
		var_InsideZoomFormat.PatternColorChart = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
		var_InsideZoomFormat.ForeColor = var_InsideZoomFormat.PatternColorChart;
	EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.SplitBaseLevel = false;
		var_InsideZooms.DefaultWidth = 18;
		var_InsideZooms.Add(Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"))).AllowInsideFormat = false;
EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = axG2antt1.ConditionalFormats.Add("%1 <= #6/10/2005#",null);
	var_ConditionalFormat.ApplyToBars = "Task";
	var_ConditionalFormat.BarColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axG2antt1.EndUpdate();

1665
How can I change the bar's color based on values on the columns

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void axG2antt1_AddItem(object sender, AxEXG2ANTTLib._IG2anttEvents_AddItemEvent e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		var_Items.AddBar(e.item,"Task",var_Items.get_CellValue(e.item,2),var_Items.get_CellValue(e.item,4),null,null);
}
//this.axG2antt1.AddItem += new AxEXG2ANTTLib._IG2anttEvents_AddItemEventHandler(this.axG2antt1_AddItem);

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("8/3/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,256);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.OverviewVisible = EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
axG2antt1.ColumnAutoResize = false;
axG2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",ADODB.CursorTypeEnum.adOpenStatic,ADODB.LockTypeEnum.adLockOptimistic,0);
axG2antt1.DataSource = (rs as ADODB.Recordset);
axG2antt1.Items.AllowCellValueToItemBar = true;
axG2antt1.Columns[2].set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
axG2antt1.Columns[4].set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
EXG2ANTTLib.ConditionalFormats var_ConditionalFormats = axG2antt1.ConditionalFormats;
	EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = var_ConditionalFormats.Add("1",null);
		var_ConditionalFormat.ApplyTo = (EXG2ANTTLib.FormatApplyToEnum)0x1;
		var_ConditionalFormat.Bold = true;
		var_ConditionalFormat.BackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(250,250,250));
	EXG2ANTTLib.ConditionalFormat var_ConditionalFormat1 = var_ConditionalFormats.Add("%1 = 5",null);
		var_ConditionalFormat1.ApplyToBars = "Task";
		var_ConditionalFormat1.BarColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
		var_ConditionalFormat1.ForeColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
		var_ConditionalFormat1.BarOverviewColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
	EXG2ANTTLib.ConditionalFormat var_ConditionalFormat2 = var_ConditionalFormats.Add("%1 = 3",null);
		var_ConditionalFormat2.ApplyToBars = "Task";
		var_ConditionalFormat2.BarColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
		var_ConditionalFormat2.ForeColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
		var_ConditionalFormat2.BarOverviewColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
axG2antt1.EndUpdate();

1664
How can I display / specify a fixed percent for the task in the histogram, no matter how long the task is

axG2antt1.BeginUpdate();
axG2antt1.DefaultItemHeight = 32;
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.UnitWidth = 32;
	var_Chart.LevelCount = 2;
	var_Chart.NonworkingDays = 0;
	var_Chart.set_PaneWidth(false,64);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 64;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
		var_Bar.ShowHistogramValues = 1.ToString();
	EXG2ANTTLib.Bar var_Bar1 = var_Chart.Bars.Copy("Task","TaskFixed");
		var_Bar1.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocationFixed | EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
		var_Bar1.ShowHistogramValues = 1.ToString();
	EXG2ANTTLib.Bar var_Bar2 = var_Chart.Bars.Copy("Task","TaskMultiply");
		var_Bar2.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocationMultiply | EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
		var_Bar2.ShowHistogramValues = 1.ToString();
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Allocation");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A","Effort/Length");
	var_Items.set_ItemBar(h,"A",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,0.25);
	var_Items.set_ItemBar(h,"A",EXG2ANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,18);
	var_Items.AddBar(h,"TaskFixed",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B","Effort");
	var_Items.set_ItemBar(h,"B",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,0.25);
	var_Items.set_ItemBar(h,"B",EXG2ANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,18);
	var_Items.AddBar(h,"TaskMultiply",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"C","Effort*Length");
	var_Items.set_ItemBar(h,"C",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,0.25);
	var_Items.set_ItemBar(h,"C",EXG2ANTTLib.ItemBarPropertyEnum.exBarVAlignCaption,18);
axG2antt1.EndUpdate();

1663
Does your control supports scrolling by touching the screen

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void axG2antt1_AddItem(object sender, AxEXG2ANTTLib._IG2anttEvents_AddItemEvent e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		var_Items.AddBar(e.item,"Task",var_Items.get_CellValue(e.item,2),var_Items.get_CellValue(e.item,4),null,null);
}
//this.axG2antt1.AddItem += new AxEXG2ANTTLib._IG2anttEvents_AddItemEventHandler(this.axG2antt1_AddItem);

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("8/3/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,256);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.OverviewVisible = EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
axG2antt1.ColumnAutoResize = false;
axG2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",ADODB.CursorTypeEnum.adOpenStatic,ADODB.LockTypeEnum.adLockOptimistic,0);
axG2antt1.DataSource = (rs as ADODB.Recordset);
axG2antt1.Items.AllowCellValueToItemBar = true;
axG2antt1.Columns[2].set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
axG2antt1.Columns[4].set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
axG2antt1.ContinueColumnScroll = true;
axG2antt1.ScrollBySingleLine = true;
axG2antt1.Chart.AllowCreateBar = EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
axG2antt1.AutoDrag = EXG2ANTTLib.AutoDragEnum.exAutoDragScrollOnShortTouch | EXG2ANTTLib.AutoDragEnum.exAutoDragScroll;
axG2antt1.EndUpdate();

1662
Is it possible to use build-in zoom-functionality to zoom time periods spanning to just some hours of one day (zoom-onfly)

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.AllowZoomOnFly = EXG2ANTTLib.ZoomOnFlyEnum.exZoomOnFly;
	var_Chart.ResizeUnitScale = EXG2ANTTLib.UnitEnum.exHour;
	var_Chart.ResizeUnitCount = 4;
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exHour,"<font ;5><b><%h%><br><%AM/PM%></b></font><||>4<||>65536");
	var_Chart.ZoomOnFlyCaption = "<br><c><b><font ;12><%=%C0%>";
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T1","T1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"T3","T3");
	h = var_Items.AddItem(null);
	var_Items.AddBar(h,"",Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"","Focus the chart ( click here ), and press the <b>CTRL + SHIFT</b>, so the Zoom-OnFly is shown.");
	var_Items.set_SelectableItem(h,false);
axG2antt1.EndUpdate();

1661
Is it possible to use build-in zoom-functionality to zoom time periods spanning to just some hours of one day (inside-zoom)

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.InsideLabel = "<%hh%>";
		var_InsideZoomFormat.InsideUnit = EXG2ANTTLib.UnitEnum.exHour;
		var_InsideZoomFormat.InsideCount = 8;
	var_Chart.AllowInsideZoom = true;
	EXG2ANTTLib.InsideZooms var_InsideZooms = var_Chart.InsideZooms;
		var_InsideZooms.Add(Convert.ToDateTime("1/4/2008",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
axG2antt1.EndUpdate();

1660
How can I export the control's content to a PDF document (method 1)
axG2antt1.BeginUpdate();
axG2antt1.MarkSearchColumn = false;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("Tasks");
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as EXG2ANTTLib.Column);
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = EXG2ANTTLib.EditTypeEnum.SpinType;
	EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as EXG2ANTTLib.Column);
		var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = EXG2ANTTLib.EditTypeEnum.SpinType;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,196);
	var_Chart.LevelCount = 2;
	var_Chart.ShowEmptyBars = 1;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
EXPRINTLib.Print var_Print = new EXPRINTLib.Print();
	var_Print.PrintExt = (axG2antt1.GetOcx() as EXG2ANTTLib.G2antt);
	var_Print.CopyTo("c:/temp/xtest.pdf");
System.Diagnostics.Debug.Print( "Look for C:\\Temp\\xtest.pdf file." );
axG2antt1.EndUpdate();

1659
How can I export the control's content to a PDF document (method 2)
axG2antt1.BeginUpdate();
axG2antt1.MarkSearchColumn = false;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("Tasks");
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("Start") as EXG2ANTTLib.Column);
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
		var_Column.Editor.EditType = EXG2ANTTLib.EditTypeEnum.SpinType;
	EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("End") as EXG2ANTTLib.Column);
		var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
		var_Column1.Editor.EditType = EXG2ANTTLib.EditTypeEnum.SpinType;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,196);
	var_Chart.LevelCount = 2;
	var_Chart.ShowEmptyBars = 1;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/4/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/9/2009",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
object var_CopyTo = axG2antt1.get_CopyTo("c:/temp/xtest.pdf");
System.Diagnostics.Debug.Print( "Look for C:\\Temp\\xtest.pdf file." );
axG2antt1.EndUpdate();

1658
Today date is shown, if we use the Column.FormatColumn and Editor.Option(exDateAllowNullDate) properties. What can be done

axG2antt1.BeginUpdate();
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Date") as EXG2ANTTLib.Column);
	var_Column.FormatColumn = "len(value) ? ( (longdate(date(value)) left 3) + ' ' + day(date(value)) + '/' + month(date(value)) + '/' + (year(date(value)) ri" +
"ght 2) ) : '' )";
	EXG2ANTTLib.Editor var_Editor = var_Column.Editor;
		var_Editor.EditType = EXG2ANTTLib.EditTypeEnum.DateType;
		var_Editor.set_Option(EXG2ANTTLib.EditorOptionEnum.exDateAllowNullDate,true);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem(Convert.ToDateTime("5/12/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Items.AddItem(null);
	var_Items.AddItem(Convert.ToDateTime("5/14/2012",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
axG2antt1.EndUpdate();

1657
Is there a syntax for conditional formatting of items, based on CellState/CellStateChange

// CellStateChanged event - Fired after cell's state has been changed.
private void axG2antt1_CellStateChanged(object sender, AxEXG2ANTTLib._IG2anttEvents_CellStateChangedEvent e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		var_Items.set_CellValue(e.item,2,var_Items.get_CellState(e.item,0));
}
//this.axG2antt1.CellStateChanged += new AxEXG2ANTTLib._IG2anttEvents_CellStateChangedEventHandler(this.axG2antt1_CellStateChanged);

axG2antt1.BeginUpdate();
axG2antt1.ShowFocusRect = false;
axG2antt1.SelBackMode = EXG2ANTTLib.BackModeEnum.exTransparent;
EXG2ANTTLib.ConditionalFormat var_ConditionalFormat = axG2antt1.ConditionalFormats.Add("%2 != 0",null);
	var_ConditionalFormat.Bold = true;
	var_ConditionalFormat.ForeColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
	var_ConditionalFormat.ApplyTo = EXG2ANTTLib.FormatApplyToEnum.exFormatToItems;
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("") as EXG2ANTTLib.Column);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column.Width = 16;
	var_Column.AllowSizing = false;
axG2antt1.Columns.Add("Information");
(axG2antt1.Columns.Add("Hidden") as EXG2ANTTLib.Column).Visible = false;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_CellValue(var_Items.AddItem(""),1,"This is a bit of text associated");
	int h = var_Items.AddItem("");
	var_Items.set_CellValue(h,1,"This is a bit of text associated");
	var_Items.set_CellState(h,0,1);
	var_Items.set_CellValue(var_Items.AddItem(""),1,"This is a bit of text associated");
axG2antt1.EndUpdate();

1656
How can I hide the items/grid section of the control

axG2antt1.BeginUpdate();
axG2antt1.OnResizeControl = EXG2ANTTLib.OnResizeControlEnum.exDisableSplitter | EXG2ANTTLib.OnResizeControlEnum.exResizeChart;
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
	var_Chart.set_PaneWidth(false,0);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axG2antt1.EndUpdate();

1655
How can I draw an extra line which could indicate deadline for my tasks

axG2antt1.BeginUpdate();
axG2antt1.DefaultItemHeight = 24;
EXG2ANTTLib.Appearance var_Appearance = axG2antt1.VisualAppearance;
	var_Appearance.Add(2,"gBFLBCJwBAEHhEJAAChABLMIQAAYAQGKIaBoAKBQAGaAoDDQOQ4QwAAxjAKUEwsACEIrjKCYVgOHYYRrIIEvZAAMIlSbCMoxcAsSQSf6YJBmKL4fiWMobRCMQyiLLMd" +
"wiGoYJ4hGgKChqI43RZNErURRkEwCgIA=");
	var_Appearance.Add(1,"CP:2 0 -4 0 4");
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,128);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Default");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.set_ItemBar(h,"K1",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,16777471);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/14/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2",null);
	var_Items.set_ItemBar(h,"K2",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,33488896);
axG2antt1.EndUpdate();

1654
How can I mark/highlight a zone in the control's histogram

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 12;
		var_Bar.HistogramRulerLinesColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,1));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axG2antt1.Chart.MarkTimeZone("zone",Convert.ToDateTime("6/13/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),15790320,";;;;histogram;1");
axG2antt1.EndUpdate();

1653
How can I get the min/max values from the histogram
// MouseMove event - Occurs when the user moves the mouse.
private void axG2antt1_MouseMoveEvent(object sender, AxEXG2ANTTLib._IG2anttEvents_MouseMoveEvent e)
{
	EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
		System.Diagnostics.Debug.Print( "Value" );
		System.Diagnostics.Debug.Print( var_Chart.get_HistogramValue(var_Chart.get_DateFromPoint(-1,-1),null,null).ToString() );
		System.Diagnostics.Debug.Print( "MIN" );
		System.Diagnostics.Debug.Print( var_Chart.get_HistogramValue("min",null,null).ToString() );
		System.Diagnostics.Debug.Print( "MAX" );
		System.Diagnostics.Debug.Print( var_Chart.get_HistogramValue("max",null,null).ToString() );
}
//this.axG2antt1.MouseMoveEvent += new AxEXG2ANTTLib._IG2anttEvents_MouseMoveEventHandler(this.axG2antt1_MouseMoveEvent);

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 12;
		var_Bar.HistogramRulerLinesColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,1));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/11/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.AddBar(var_Items.AddItem("Task"),"Task",Convert.ToDateTime("6/12/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/16/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
axG2antt1.EndUpdate();

1652
How can I assign different efforts(expression) to the same bar

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 12;
		var_Bar.HistogramRulerLinesColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,1));
	var_Chart.get_Level(1).Label = "<font ;3><%d%>";
	var_Chart.UnitWidth = 9;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) in (0,6) ? 0.25 : 2");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/18/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) = 1 ? 2 : 1");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"month (value) = 7 ? 1 : 0");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/5/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"(month(value)=month(value+1)) ? 1 : 0");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"int(value-start) ? 1 : 2");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("7/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/14/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"(int(value-start) and int(end-value) != 0 ) ? 1 : 2");
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("7/15/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"(int(value-start)+1) mod 2 ? 1 : 0");
axG2antt1.EndUpdate();

1651
How can I prevent showing the representation of the bar on the week days, nonworking part

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/9/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.HistogramHeight = 128;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramItems = 12;
		var_Bar.HistogramRulerLinesColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,1));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/10/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"weekday(value) in (0,6) ? 0 : 2");
axG2antt1.EndUpdate();

1650
How do I programatically focus a cell
// FocusChanged event - Occurs when a cell gets the focus.
private void axG2antt1_FocusChanged(object sender, EventArgs e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		var_Items.set_CellBackColor(var_Items.FocusItem,axG2antt1.FocusColumnIndex,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
}
//this.axG2antt1.FocusChanged += new EventHandler(this.axG2antt1_FocusChanged);

axG2antt1.BeginUpdate();
axG2antt1.SelForeColor = axG2antt1.ForeColor;
axG2antt1.SelBackColor = axG2antt1.BackColor;
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exRowLines;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("Column1");
	var_Columns.Add("Column2");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_CellValue(var_Items.AddItem("Cell 1.1"),1,"Cell 1.2");
	var_Items.set_CellValue(var_Items.AddItem("Cell 2.1"),1,"Cell 2.2");
EXG2ANTTLib.Items var_Items1 = axG2antt1.Items;
	var_Items1.set_SelectItem(var_Items1[1],true);
axG2antt1.FocusColumnIndex = 1;
axG2antt1.EndUpdate();

1649
How do I programatically focus a cell (excrd)
// FocusChanged event - Occurs when a cell gets the focus.
private void axG2antt1_FocusChanged(object sender, EventArgs e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		var_Items.set_CellBackColor(var_Items.FocusItem,axG2antt1.FocusColumnIndex,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
}
//this.axG2antt1.FocusChanged += new EventHandler(this.axG2antt1_FocusChanged);

axG2antt1.BeginUpdate();
axG2antt1.SelForeColor = axG2antt1.ForeColor;
axG2antt1.SelBackColor = axG2antt1.BackColor;
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exRowLines;
axG2antt1.DefaultItemHeight = 36;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	(var_Columns.Add("Column1") as EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Column2") as EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Column3") as EXG2ANTTLib.Column).Visible = false;
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("FormatLevel") as EXG2ANTTLib.Column);
		var_Column.FormatLevel = "(0/1),2";
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellFormatLevel,var_Column.FormatLevel);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Cell 1.1");
	var_Items.set_CellValue(h,1,"Cell 1.2");
	var_Items.set_CellValue(h,2,"Cell 1.3");
	h = var_Items.AddItem("Cell 2.1");
	var_Items.set_CellValue(h,1,"Cell 2.2");
	var_Items.set_CellValue(h,2,"Cell 2.3");
EXG2ANTTLib.Items var_Items1 = axG2antt1.Items;
	var_Items1.set_SelectItem(var_Items1[1],true);
axG2antt1.FocusColumnIndex = 2;
axG2antt1.EndUpdate();

1648
How can I get task's user data ( exBarData ) when user double clicks the bar
// DblClick event - Occurs when the user dblclk the left mouse button over an object.
private void axG2antt1_DblClick(object sender, AxEXG2ANTTLib._IG2anttEvents_DblClickEvent e)
{
	int item = axG2antt1.get_ItemFromPoint(-1,-1,c,hit);
	object key = axG2antt1.Chart.get_BarFromPoint(-1,-1);
	System.Diagnostics.Debug.Print( axG2antt1.Items.get_ItemBar(item,key,EXG2ANTTLib.ItemBarPropertyEnum.exBarData).ToString() );
}
//this.axG2antt1.DblClick += new AxEXG2ANTTLib._IG2anttEvents_DblClickEventHandler(this.axG2antt1_DblClick);

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
axG2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axG2antt1.Chart.set_PaneWidth(false,48);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarData,"this is a bit of extra data associated with task 1");
	h = var_Items.AddItem("Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarData,"this is a bit of extra data associated with task 2");
axG2antt1.EndUpdate();

1647
How do I get arranged the levels to display, weeks, days and so on

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.UnitWidth = 24;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	EXG2ANTTLib.Level var_Level = var_Chart.get_Level(0);
		var_Level.Alignment = EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level.Label = "<b><Font Tahoma;7><%m3%>, <%yyyy%></b><b>, <Font Tahoma;7>Wk <%ww%>";
		var_Level.Unit = EXG2ANTTLib.UnitEnum.exWeek;
		var_Level.DrawGridLines = true;
	EXG2ANTTLib.Level var_Level1 = var_Chart.get_Level(1);
		var_Level1.Alignment = EXG2ANTTLib.AlignmentEnum.CenterAlignment;
		var_Level1.Label = "<Font Tahoma;7><%d%>";
		var_Level1.Unit = EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
axG2antt1.EndUpdate();

1646
How can I add a task and a milestone to the same item
axG2antt1.Columns.Add("Task");
axG2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Milestone",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"MKey",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);

1645
How can I change the visual appearance of the buttons on the control's overview part

axG2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAADhABdQFg6AADACAxRDAMgBQKAAzQFAYawdBgABoGUZ4JhUAIIRZGMIjFDcEwxC6NIpAWCYQDENQwSSMMJwSKYYBiASEYJASQZUhmHIDTbIEBxf" +
"IMIRLE6PZbmEYYfgeNY6TQCcIgVD0ExhAZ2Q4EQAKRpOFY/DBQNLgAKNCQ3LaQY7BaKgZouTYDVrVNSVFC0IBkGoSbauCIJHrGCZ1RBYMI0VDNRwHJiMbRtSyqXjGJ4p" +
"SrAcq0FAgYRHI6jZxnGL5chqPqGVjMNZ1bQuKwzT0Ld5wTYsdydBK1MIkTKKaoORZgRpYUI6FAeSgBWyPcCqPSoDrKdo4XLdYwbeAFcSPD6+NBhG7tXm/NarNTgTB6DB" +
"thsGJbgYYw9AQVxBoOch2hEbh+nAARYkQdZ7CMPYGH+FxmlqbJ5lqDAdjMC5AmIW54hwaBvA4IQ8D+T8IFscgenAAZMHiEgWiWdRZlSAAhAkFAGq6dAdEcIYVF4QJKCA" +
"HQDBCBJYGUGQNhCEIhiSCJaGAYQWBsIYmEEFgJAGQ42CyC4iliPgygsT4olSXg3g2Qwwk0MpMiMLJIg8Y54niTYOmPPJMDMDIonSSU7jMJJbDaTYjlYUoMmMCRWFQAAl" +
"EkZgtDgTgjgCJQpEoIgkgkIQHnIAB7CACARnIaIaiaGYuG6GxmhmFB7CGSICAyHwoAmQxQlQNIlikWgthYIwaAYVQvAuQpsg0IxIhKTIzCwToTiiaYACkChGhKJJpEOQ" +
"oWC+C5imyCgiggYpUzMZ5Yj6AIfg6UpcjgLYInIPILhOTYaEIUg9EoItfCGCByAiCV2lIKILCGK4qnKO4YggWpQgIJxJmIaJhDgDgKECaIykkUhUhILQLEKRh9iiYpzC" +
"SSQxmgcgkm2NppAKbI8C4RoBiQYgSgSMQQEEEIDjECBDA8LorjKa47EQMQSm4DpEhEKBDBeRgBGqMQnmkA5in4JAJAINoEC6JR4jyaQ6E6AhEhIIxNBMRJPiQCYyHCGA" +
"UgUMQwEgEhhkEOBHBOBJxCMHJHjGXB/CKSBxlENwaj1qgsEwERICIDB/iQDgjgiYYvE2cx8l2KIinoEI5CYSYiFqEAz0mMBZBbwIkEsEN+gMSpSHSTITEqSoEFyGBHCo" +
"SoihqEAsgsIo8ikKhKGiVJ6AADwTkicQlAkUhElA+Z4VUHpHGuRA8lMdI9DscJc8r5QQAaIYsGUOpOjoOwHCEJAUgBh8B1EAAcHIzg5gPCGNgdQfRPhnGiLINhhQEDCB" +
"cGUDYphxjLHkNgfwTARhiHEBYWAVxpI1HQDcDjthiAADoKcCgJgbs7FyG4LQagBBgE0CMOYOxLhtGY/AcAegNgTHIPkHISAHADEQNYOA2BwAHEQHABwQxMDbCQEscoEB" +
"AAgEOD0V4cR0jyGCPAPwHAvh0EAOIHIDRfA/EaGMfYfguAACiBQIg/xWAbH0F8J4bxSD6G8MUMo7Q9ieHuI8eA0gLjfG2PUPQnwvhvHsPsGABxhD8E+AMbgfhVDJH2L8" +
"U48wAjbEGPwPo7x8j4F4FccwHAhhiEgBQEQhAnCDGgHwBonxiAZD+G8Lo/hHj3H8PELIiBwgOFCNQHAqQAhYBWAUIARAECgHyKkIIqAIgGGCLgUIFAhB5CQAcFAGgcEH" +
"HKBwUYkAdiHDgOaAIKBigYCCFAFQhBzChAWKEOYzwDhCEwFMBQNxwD3C8CsPgHQhANEuA4Uw+gdhHDAOwBogRYAzFuGAQIEgQAzCSGUAIbAXAFCiKIGghhBCQAeAFIgD" +
"gwjMByEAAYXg1hiEwFgBYAQugAGIPsTodgnDSBgMca4LhqChCgD4CIYgYBDmcI4GIxgUCYAm1oPIjwgjmFQMYWA1gNCiBUqcII6gegUEAHwB4oRwhzEGLge4GAOC6HUA" +
"cMIsAbCGDqLYHYVBACTAkIIIAYigCIGcBQCArQKiiFQFERQUQhDMAOBgcIWAggUBGIMfAVAHhCBwEgBAMg+jbFqCcHYLxvg4D2A8QI3AziMHiJoUgFhACyCwIINofwHi" +
"JDAJUKw2B2ARGEEAIwCxIh2BaNQQA/ROBRGoFYQ48B/AeEGEt99lQOgDFgGcAtFgdgHEANIMAhAIDKAygkQAEAAjxBeIoCI7QfjUEEEwDIIgWBFEQHUSANxsAqEEEUdw" +
"lA4iJCSFYEwhBsCXE0KoIAexnj4DoDkEwaBmgYCGAwMADAkCFCMMYAQOgMhQEIHsaIVQQDXFOOgRtwAUguAcAUU1iw1CWA6OwdIOQFBxCgCkDgeBribBmIgP4KQiAAB+" +
"KoAg2QNiDDoG0BQyQzg+EGOAWAFgRC4DsEURQYAdhWFKAoKAVQAB/AcHEaAORiioFqBYMWFATCZEsBsIYcA0gMGCJwGAhg4DQAwKsDAYQGzZBkAcSA8gODEBEGQVIQha" +
"jUEeeYKY1QIDrBCIAEg0xIAwEgBNkAAADUTA6B4MQEwv0UEGLAUgzhf04AKGEg4BhYD2B0MUAABApAAvqI8WAqAdDGGwJsEIXwWDtE0AAA4fhmDZCmJMMwbBkgBIC");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,0);
	var_Chart.LevelCount = 2;
	var_Chart.OverviewVisible = EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.AllowOverviewZoom = EXG2ANTTLib.OverviewZoomEnum.exAlwaysZoom;
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exSecond,"");
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exYear,"");
axG2antt1.Chart.OverviewSelBackColor = 0x1ffff00;

1644
Is there a way to show the Start and End dates in mm-dd-yyyy format

axG2antt1.BeginUpdate();
axG2antt1.MarkSearchColumn = false;
axG2antt1.Items.AllowCellValueToItemBar = true;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/25/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,196);
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Start") as EXG2ANTTLib.Column);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"K1");
	var_Column.FormatColumn = "(0 array (0:=(shortdateF(value) split `/`))) + `-` + (1 array (=:0) ) + `-` + (2 array (=:0) )";
EXG2ANTTLib.Column var_Column1 = (axG2antt1.Columns.Add("End") as EXG2ANTTLib.Column);
	var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"K1");
	var_Column1.FormatColumn = "shortdateF(value) replace `/` with `-`";
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem(null),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.AddBar(var_Items.AddItem(null),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
axG2antt1.EndUpdate();

1643
Is there a way to show the Start and End dates in dd-mm-yyyy format

axG2antt1.BeginUpdate();
axG2antt1.MarkSearchColumn = false;
axG2antt1.Items.AllowCellValueToItemBar = true;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/25/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,196);
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Start") as EXG2ANTTLib.Column);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,1);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"K1");
	var_Column.FormatColumn = "(1 array (0:=(shortdateF(value) split `/`))) + `-` + (0 array (=:0) ) + `-` + (2 array (=:0) )";
EXG2ANTTLib.Column var_Column1 = (axG2antt1.Columns.Add("End") as EXG2ANTTLib.Column);
	var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,2);
	var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"K1");
	var_Column1.FormatColumn = "(1 array (0:=(shortdateF(value) split `/`))) + `-` + (0 array (=:0) ) + `-` + (2 array (=:0) )";
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem(null),"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
	var_Items.AddBar(var_Items.AddItem(null),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1",null);
axG2antt1.EndUpdate();

1642
If we have bars with dark color, we use white font/color. But if the bars are too small for the caption, you can’t read it. What can we do

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
axG2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axG2antt1.Chart.set_PaneWidth(false,48);
EXG2ANTTLib.Bar var_Bar = axG2antt1.Chart.Bars["Task"];
	var_Bar.Pattern = EXG2ANTTLib.PatternEnum.exPatternSolid;
	var_Bar.Height = 17;
EXG2ANTTLib.Bar var_Bar1 = axG2antt1.Chart.Bars["Progress"];
	var_Bar1.Pattern = EXG2ANTTLib.PatternEnum.exPatternSolid;
	var_Bar1.Height = 17;
	var_Bar1.Shape = EXG2ANTTLib.ShapeBarEnum.exShapeSolid;
	var_Bar1.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255));
EXG2ANTTLib.Bar var_Bar2 = axG2antt1.Chart.Bars.Add("Task%Progress");
	var_Bar2.Pattern = EXG2ANTTLib.PatternEnum.exPatternSolid;
	var_Bar2.Height = 17;
	var_Bar2.Shortcut = "Percent";
axG2antt1.DefaultItemHeight = 21;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,4112616);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF><sha 0;;0>Pause");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"white",null);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,4112616);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF>Pause");
	h = var_Items.AddItem("Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,2017557);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF><sha 0;;0>Production");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"white",null);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,2017557);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF>Production");
	h = var_Items.AddItem("Task 3");
	var_Items.AddBar(h,"Percent",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarPercent,0.5);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,2017557);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF><sha 0;;0>Pausing");
	var_Items.AddBar(h,"Percent",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"white",null);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarPercent,0.5);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,2017557);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF>Pausing");
	h = var_Items.AddItem("Task 4");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"",null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,8421504);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF><sha 0;;0>Planned downtime");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/11/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"white",null);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,8421504);
	var_Items.set_ItemBar(h,"white",EXG2ANTTLib.ItemBarPropertyEnum.exBarCaption,"<fgcolor=FFFFFF>Planned downtime");
axG2antt1.EndUpdate();

1641
How do I programmatically exclude items from the filter

axG2antt1.BeginUpdate();
axG2antt1.LinesAtRoot = EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Items") as EXG2ANTTLib.Column);
	var_Column.DisplayFilterButton = true;
	var_Column.DisplayFilterPattern = false;
	var_Column.FilterList = EXG2ANTTLib.FilterListEnum.exShowExclude | EXG2ANTTLib.FilterListEnum.exShowFocusItem | EXG2ANTTLib.FilterListEnum.exShowCheckBox;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem("Item 1");
	var_Items.AddItem("Item 2");
	var_Items.AddItem("Item 3");
	var_Items.AddItem("Item 4");
EXG2ANTTLib.Column var_Column1 = axG2antt1.Columns[0];
	var_Column1.FilterType = EXG2ANTTLib.FilterTypeEnum.exFilterExclude | EXG2ANTTLib.FilterTypeEnum.exFilter;
	var_Column1.Filter = "Item 1|Item 4";
axG2antt1.ApplyFilter();
axG2antt1.EndUpdate();

1640
How do I show in histogram, more values for a single task

// BeforeExpandItem event - Fired before an item is about to be expanded (collapsed).
private void axG2antt1_BeforeExpandItem(object sender, AxEXG2ANTTLib._IG2anttEvents_BeforeExpandItemEvent e)
{
	e.cancel = true;
}
//this.axG2antt1.BeforeExpandItem += new AxEXG2ANTTLib._IG2anttEvents_BeforeExpandItemEventHandler(this.axG2antt1_BeforeExpandItem);

axG2antt1.BeginUpdate();
axG2antt1.SingleSel = true;
axG2antt1.ExpandOnDblClick = false;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.AllowLinkBars = false;
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/29/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 167;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramNoGrouping | EXG2ANTTLib.HistogramViewEnum.exHistogramUnlockedItems;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistCumulative;
		var_Bar.HistogramItems = 6;
		var_Bar.HistogramPattern = EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.HistogramItems = -40000;
		var_Bar.HistogramCriticalValue = 100000;
		var_Bar.HistogramRulerLinesColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(128,128,128));
		var_Bar.HistogramCumulativeColors = 3;
	var_Chart.ShowNonworkingDates = false;
(axG2antt1.Columns.Add("Costs") as EXG2ANTTLib.Column).Visible = false;
(axG2antt1.Columns.Add("Tasks") as EXG2ANTTLib.Column).Visible = true;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Estimated");
	var_Items.set_CellValue(h,1,"Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,8000);
	int hR = var_Items.InsertItem(h,null,"Actual");
	var_Items.AddBar(hR,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(hR,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,9000);
	var_Items.GroupBars(h,"",true,hR,"",true,null,null);
	var_Items.GroupBars(h,"",false,hR,"",false,null,null);
	hR = var_Items.InsertItem(h,null,"Cost");
	var_Items.AddBar(hR,"Task",Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/10/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(hR,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,200);
	var_Items.GroupBars(h,"",true,hR,"",true,null,null);
	var_Items.GroupBars(h,"",false,hR,"",false,null,null);
	h = var_Items.AddItem("Estimated");
	var_Items.set_CellValue(h,1,"Task 2");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,7000);
	hR = var_Items.InsertItem(h,null,"Actual");
	var_Items.AddBar(hR,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(hR,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,8000);
	var_Items.GroupBars(h,"",true,hR,"",true,null,null);
	var_Items.GroupBars(h,"",false,hR,"",false,null,null);
	hR = var_Items.InsertItem(h,null,"Cost");
	var_Items.AddBar(hR,"Task",Convert.ToDateTime("1/9/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/15/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(hR,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,150);
	var_Items.GroupBars(h,"",true,hR,"",true,null,null);
	var_Items.GroupBars(h,"",false,hR,"",false,null,null);
axG2antt1.EndUpdate();

1639
How can I align the caption of the bar

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/25/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","exBarHAlignCaption = 0");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,0);
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","exBarHAlignCaption = 1");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,1);
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","exBarHAlignCaption = 2");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,2);
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","Clip 3");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,3);
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","Clip 4");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,4);
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","Clip 5");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,5);
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","Outside Left 16");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,16);
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","Outside Right 18");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,18);
	h = var_Items.AddItem("Task");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K","Outside Center 17");
	var_Items.set_ItemBar(h,"K",EXG2ANTTLib.ItemBarPropertyEnum.exBarHAlignCaption,17);
axG2antt1.EndUpdate();

1638
How can I change the drop down filter background color

axG2antt1.BeginUpdate();
axG2antt1.LinesAtRoot = EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exBackColorFilter,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,255,255)));
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Items") as EXG2ANTTLib.Column);
	var_Column.DisplayFilterButton = true;
	var_Column.DisplayFilterPattern = false;
	var_Column.FilterList = EXG2ANTTLib.FilterListEnum.exShowFocusItem | EXG2ANTTLib.FilterListEnum.exShowCheckBox | EXG2ANTTLib.FilterListEnum.exSortItemsAsc | EXG2ANTTLib.FilterListEnum.exLeafItems;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Root 1");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);
	h = var_Items.AddItem("Root 2");
	var_Items.InsertItem(h,null,"Child 1");
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.InsertItem(h,null,"Child 3");
	var_Items.set_ExpandItem(h,true);
axG2antt1.EndUpdate();

1637
How can I arrange the columns using CRD (eXCRD ) strings (Sample 2)

axG2antt1.BeginUpdate();
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
axG2antt1.DefaultItemHeight = 36;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("C1") as EXG2ANTTLib.Column);
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
		var_Column.Width = 18;
		var_Column.AllowSizing = false;
	EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("C2") as EXG2ANTTLib.Column);
		var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
		var_Column1.Width = 18;
	(var_Columns.Add("Column1") as EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Column2") as EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Column3") as EXG2ANTTLib.Column).Visible = false;
	EXG2ANTTLib.Column var_Column2 = (var_Columns.Add("FormatLevel") as EXG2ANTTLib.Column);
		var_Column2.FormatLevel = "18;\"Info\"[a=17]/(2/3,4)";
		var_Column2.set_Def(EXG2ANTTLib.DefColumnEnum.exCellFormatLevel,"2/3,4");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/22/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Cell 1.1");
	var_Items.set_CellValue(h,1,"Cell 1.2");
	var_Items.set_CellValue(h,2,"Cell 1.3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/23/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Cell 2.1");
	var_Items.set_CellValue(h,1,"Cell 2.2");
	var_Items.set_CellValue(h,2,"Cell 2.3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/26/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1636
How can I arrange the columns using CRD (eXCRD ) strings (Sample 1)

axG2antt1.BeginUpdate();
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
axG2antt1.DefaultItemHeight = 36;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	(var_Columns.Add("Column1") as EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Column2") as EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Column3") as EXG2ANTTLib.Column).Visible = false;
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("FormatLevel") as EXG2ANTTLib.Column);
		var_Column.FormatLevel = "(0/1),2";
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellFormatLevel,var_Column.FormatLevel);
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/22/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Cell 1.1");
	var_Items.set_CellValue(h,1,"Cell 1.2");
	var_Items.set_CellValue(h,2,"Cell 1.3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/23/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/25/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	h = var_Items.AddItem("Cell 2.1");
	var_Items.set_CellValue(h,1,"Cell 2.2");
	var_Items.set_CellValue(h,2,"Cell 2.3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/26/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2014",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1635
How do I display the histogram for filtered items only
axG2antt1.BeginUpdate();
axG2antt1.SingleSel = false;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.LevelCount = 2;
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 32;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramFilteredItems;
	var_Chart.Bars["Task"].HistogramPattern = EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Column") as EXG2ANTTLib.Column);
	var_Column.DisplayFilterButton = true;
	var_Column.Filter = "Item 1";
	var_Column.FilterType = EXG2ANTTLib.FilterTypeEnum.exFilter;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.ApplyFilter();
axG2antt1.EndUpdate();

1634
How can I use no scroll bars for touch-screens

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void axG2antt1_AddItem(object sender, AxEXG2ANTTLib._IG2anttEvents_AddItemEvent e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		var_Items.AddBar(e.item,"Task",var_Items.get_CellValue(e.item,2),var_Items.get_CellValue(e.item,4),null,null);
}
//this.axG2antt1.AddItem += new AxEXG2ANTTLib._IG2anttEvents_AddItemEventHandler(this.axG2antt1_AddItem);

// MouseMove event - Occurs when the user moves the mouse.
private void axG2antt1_MouseMoveEvent(object sender, AxEXG2ANTTLib._IG2anttEvents_MouseMoveEvent e)
{
	axG2antt1.ShowToolTip("<font ;6><sha ;;0><off -4>Tip</off></sha></font> If the cursor hovers bars, click and wait for a second to start scrolling.",null,null,null,null);
}
//this.axG2antt1.MouseMoveEvent += new AxEXG2ANTTLib._IG2anttEvents_MouseMoveEventHandler(this.axG2antt1_MouseMoveEvent);

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.AllowCreateBar = EXG2ANTTLib.CreateBarEnum.exNoCreateBar;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("8/3/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,256);
	var_Chart.LevelCount = 2;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exDay;
	var_Chart.FirstWeekDay = EXG2ANTTLib.WeekDayEnum.exMonday;
	var_Chart.OverviewVisible = EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
axG2antt1.ColumnAutoResize = false;
axG2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",ADODB.CursorTypeEnum.adOpenStatic,ADODB.LockTypeEnum.adLockOptimistic,0);
axG2antt1.DataSource = (rs as ADODB.Recordset);
axG2antt1.AutoDrag = EXG2ANTTLib.AutoDragEnum.exAutoDragScroll;
axG2antt1.ScrollWidth = 4;
axG2antt1.ScrollHeight = 4;
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exHSLeft,(uint)ColorTranslator.ToWin32(Color.FromArgb(192,192,192)));
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exHSRight,(uint)ColorTranslator.ToWin32(Color.FromArgb(192,192,192)));
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exHSBack,(uint)ColorTranslator.ToWin32(Color.FromArgb(224,224,224)));
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exHSThumb,(uint)ColorTranslator.ToWin32(Color.FromArgb(128,128,128)));
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exVSBack,(uint)ColorTranslator.ToWin32(Color.FromArgb(224,224,224)));
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exVSDown,(uint)ColorTranslator.ToWin32(Color.FromArgb(192,192,192)));
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exVSThumb,(uint)ColorTranslator.ToWin32(Color.FromArgb(128,128,128)));
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exVSUp,(uint)ColorTranslator.ToWin32(Color.FromArgb(192,192,192)));
axG2antt1.ScrollButtonWidth = 0;
axG2antt1.ScrollButtonHeight = 0;
axG2antt1.EndUpdate();

1633
How can I display values in the histogram legend

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Tasks");
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Effort") as EXG2ANTTLib.Column);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,21);
	var_Column.Editor.EditType = EXG2ANTTLib.EditTypeEnum.SpinType;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.NonworkingDays = 0;
	var_Chart.set_PaneWidth(false,96);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 128;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverload;
		var_Bar.HistogramCriticalValue = 3;
		var_Bar.HistogramItems = -7;
		var_Bar.HistogramGridLinesColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(192,192,192));
		var_Bar.HistogramRulerLinesColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,1));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/21/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellValue(h1,1,4);
	h1 = var_Items.AddItem("Task 2");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/24/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/26/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellValue(h1,1,3);
	h1 = var_Items.AddItem("Task 3");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/27/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellValue(h1,1,2);
	h1 = var_Items.AddItem("Task 4");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/30/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("7/2/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_CellValue(h1,1,1);
axG2antt1.EndUpdate();

1632
I am using AllowGroupBy property and calling the Column.SortOrder property groups by that column. Is it possible to prevent that, so I have a similar behavior like I click the column's header rather than dragging it to the control's GroupBy bar

EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("First");
	var_Columns.Add("Second");
	var_Columns.Add("Third");
axG2antt1.SortBarVisible = true;
axG2antt1.SingleSort = false;
axG2antt1.AllowGroupBy = true;
axG2antt1.Layout = "SingleSort = \"C0:1\";MultipleSort = \"C1:2 C2:1\"";

1631
Calling programatically the Column.SortOrder property adds the column to the sort bar. Is it possible to prevent that, so I have a similar behavior like I click the column's header rather than dragging it to the control's Sort bar
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("First");
	var_Columns.Add("Second");
	var_Columns.Add("Third");
axG2antt1.SortBarVisible = true;
axG2antt1.SingleSort = false;
axG2antt1.Layout = "SingleSort = \"C0:1\"";

1630
How can I specify different working parts for different items

axG2antt1.BeginUpdate();
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("Tasks");
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("Working") as EXG2ANTTLib.Column);
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,258);
		var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"A");
		var_Column.FormatColumn = "(0:=round(value*24)) != 0 ? =:0 : ''";
	EXG2ANTTLib.Column var_Column1 = (var_Columns.Add("NonWorking") as EXG2ANTTLib.Column);
		var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarProperty,259);
		var_Column1.set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueToItemBarKey,"A");
		var_Column1.FormatColumn = "(0:=round(value*24)) != 0 ? =:0 : ''";
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,78);
	var_Chart.AllowCreateBar = EXG2ANTTLib.CreateBarEnum.exCreateBarAuto;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.DrawLevelSeparator = EXG2ANTTLib.LevelLineEnum.exLevelNoLine;
	var_Chart.LevelCount = 3;
	var_Chart.get_Level(1).DrawGridLines = false;
	var_Chart.AllowInsideZoom = true;
	var_Chart.DrawDateTicker = true;
	var_Chart.DateTickerLabel = "<%mmm%> <%d%><br><b><%hh%>:<%nn%></b>";
	var_Chart.MarkSelectDateColor = 0x7ffff8ee;
	EXG2ANTTLib.InsideZoomFormat var_InsideZoomFormat = var_Chart.DefaultInsideZoomFormat;
		var_InsideZoomFormat.OwnerLabel = "<%mmm%> <%d%>";
		var_InsideZoomFormat.BackColor = (uint)ColorTranslator.ToWin32(Color.FromArgb(238,248,255));
		var_InsideZoomFormat.BackColorChart = var_InsideZoomFormat.BackColor;
		var_InsideZoomFormat.InsideCount = 4;
		var_InsideZoomFormat.InsideLabel = "<b><%hh%></b>";
	var_Chart.InsideZooms.Add(Convert.ToDateTime("6/22/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")));
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exVLines;
	var_Chart.Bars["Split"].Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Add("Task:Split");
		var_Bar.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
		var_Bar.Pattern = EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
		var_Bar.Shortcut = "Task";
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AllowCellValueToItemBar = true;
	int h1 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h1,"Task",Convert.ToDateTime("6/22/2005 8:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/28/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.set_ItemBar(h1,"A",EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
	var_Items.set_ItemNonworkingUnits(h1,false,"weekday(value) in (1,2)");
	var_Items.set_ItemNonworkingUnits(h1,true,"weekday(value) in (1,2) or (hour(value)<8 or hour(value)>=16 )");
	int h2 = var_Items.AddItem("Task 1");
	var_Items.AddBar(h2,"Task",Convert.ToDateTime("6/22/2005 4:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/29/2005 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.set_ItemBar(h2,"A",EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
	var_Items.set_ItemNonworkingUnits(h2,false,"weekday(value) in (1,2)");
	var_Items.set_ItemNonworkingUnits(h2,true,"weekday(value) in (1, 2) or (hour(value)<4 or hour(value)>=12 )");
axG2antt1.EndUpdate();

1629
How can I define the default bar's foreground color

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.set_PaneWidth(false,48);
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.Height = 15;
		var_Bar.Pattern = EXG2ANTTLib.PatternEnum.exPatternSolid;
		var_Bar.set_Def(EXG2ANTTLib.ItemBarPropertyEnum.exBarForeColor,16777215);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Task 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K1","bar A");
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K2","bar B");
	var_Items.AddBar(var_Items.AddItem("Task 3"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/6/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3","bar C");
axG2antt1.EndUpdate();

1628
How can I print the selected items only

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void axG2antt1_AddItem(object sender, AxEXG2ANTTLib._IG2anttEvents_AddItemEvent e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		var_Items.AddBar(e.item,"Task",var_Items.get_CellValue(e.item,2),var_Items.get_CellValue(e.item,4),null,null);
}
//this.axG2antt1.AddItem += new AxEXG2ANTTLib._IG2anttEvents_AddItemEventHandler(this.axG2antt1_AddItem);

axG2antt1.BeginUpdate();
axG2antt1.SingleSel = false;
axG2antt1.ColumnAutoResize = false;
axG2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",ADODB.CursorTypeEnum.adOpenStatic,ADODB.LockTypeEnum.adLockOptimistic,0);
axG2antt1.DataSource = (rs as ADODB.Recordset);
axG2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("8/4/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_SelectItem(var_Items[0],true);
	var_Items.set_SelectItem(var_Items[2],true);
	var_Items.set_SelectItem(var_Items[4],true);
axG2antt1.EndUpdate();
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
EXPRINTLib.Print var_Print = new EXPRINTLib.Print();
	var_Print.Options = "Print = Selection";
	var_Print.PrintExt = (axG2antt1.GetOcx() as EXG2ANTTLib.G2antt);
	var_Print.Preview();

1627
How can I sort the columns to be displayed on the columns floating bar
axG2antt1.ColumnAutoResize = false;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	(var_Columns.Add("City") as EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("Start") as EXG2ANTTLib.Column).Visible = false;
	(var_Columns.Add("End") as EXG2ANTTLib.Column).Visible = false;
axG2antt1.ColumnsFloatBarVisible = EXG2ANTTLib.ColumnsFloatBarVisibleEnum.exColumnsFloatBarVisibleIncludeHiddenColumns;
axG2antt1.ColumnsFloatBarSortOrder = EXG2ANTTLib.SortOrderEnum.SortAscending;

1626
How can I add a vertical padding for my cells
axG2antt1.BeginUpdate();
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Padding") as EXG2ANTTLib.Column);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellSingleLine,false);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellPaddingLeft,6);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellPaddingRight,6);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellPaddingTop,6);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellPaddingBottom,6);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem("padding");
	var_Items.AddItem("padding");
axG2antt1.EndUpdate();

1625
Trying to fill the second columns. How can I do that
axG2antt1.BeginUpdate();
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	var_Columns.Add("Column 1");
	var_Columns.Add("Column 2");
	var_Columns.Add("Column 3");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("SubItem 1.1");
	var_Items.set_CellValue(h,1,"SubItem 1.2");
	var_Items.set_CellValue(h,2,"SubItem 1.3");
	h = var_Items.AddItem("SubItem 2.1");
	var_Items.set_CellValue(h,1,"SubItem 2.2");
	var_Items.set_CellValue(h,2,"SubItem 2.3");
axG2antt1.EndUpdate();

1624
How can I specify a different background color for item, in chart or list panels

axG2antt1.Columns.Add("Default");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Root");
	int hC = var_Items.InsertItem(h,null,"Child 1");
	var_Items.set_ItemBackColor(hC,(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
	axG2antt1.Chart.set_ItemBackColor(hC,(uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0)));
	var_Items.InsertItem(h,null,"Child 2");
	var_Items.set_ExpandItem(h,true);

1623
Is it possible to specify a status part for each bar

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
axG2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axG2antt1.Chart.set_PaneWidth(false,64);
axG2antt1.Debug = true;
axG2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAChABL8IQAAYAQGKIaBwAKBQAGaAoDDQNgyQwAAxwdBMKgBBCLIxhEYobgmGIaRjHcQjEKoSxHEqIRpGCRoJiqLIZAJIEZRZAcaQvGSQYRASCRN" +
"DEOA0TDAY4jPD4aQiGIbRjjeL5YjiNo2UxTNRQCEB");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
	var_Items.set_ItemBar(0,"<*>",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
	var_Items.set_ItemBar(0,"<*>",EXG2ANTTLib.ItemBarPropertyEnum.exBarFrameColor,16777216);
axG2antt1.EndUpdate();

1622
How can I change the the focus rectangle

axG2antt1.BeginUpdate();
axG2antt1.VisualAppearance.Add(1,"C:\\Program Files\\Exontrol\\ExG2antt\\sample\\EBN\\hoverinsert.ebn");
axG2antt1.set_Background(EXG2ANTTLib.BackgroundPartEnum.exShowFocusRect,0x1000000);
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Check") as EXG2ANTTLib.Column);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellPaddingLeft,2);
	var_Column.set_Def(EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
axG2antt1.SelForeColor = axG2antt1.ForeColor;
axG2antt1.SelBackColor = axG2antt1.BackColor;
axG2antt1.DefaultItemHeight = 22;
axG2antt1.ShowFocusRect = true;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem("");
	var_Items.AddItem("");
axG2antt1.EndUpdate();

1621
Can each cell have their own dropdown lists that contain "different list item values" for each cell, not predefined for the entire column
axG2antt1.BeginUpdate();
EXG2ANTTLib.Editor var_Editor = (axG2antt1.Columns.Add("Column/Cell-Same") as EXG2ANTTLib.Column).Editor;
	var_Editor.EditType = EXG2ANTTLib.EditTypeEnum.DropDownListType;
	var_Editor.AddItem(0,"Zero",null);
	var_Editor.AddItem(1,"One",null);
	var_Editor.AddItem(2,"Two",null);
EXG2ANTTLib.Editor var_Editor1 = (axG2antt1.Columns.Add("Column/Cell-Different") as EXG2ANTTLib.Column).Editor;
	var_Editor1.EditType = EXG2ANTTLib.EditTypeEnum.EditType;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem(null);
	int h = var_Items.AddItem(0);
	EXG2ANTTLib.Editor var_Editor2 = var_Items.get_CellEditor(h,1);
		var_Editor2.EditType = EXG2ANTTLib.EditTypeEnum.DropDownListType;
		var_Editor2.AddItem(3,"Three",null);
		var_Editor2.AddItem(4,"Four",null);
	var_Items.set_CellValue(h,1,3);
	var_Items.AddItem(null);
	h = var_Items.AddItem(0);
	EXG2ANTTLib.Editor var_Editor3 = var_Items.get_CellEditor(h,1);
		var_Editor3.EditType = EXG2ANTTLib.EditTypeEnum.CheckListType;
		var_Editor3.AddItem(1,"Single",null);
		var_Editor3.AddItem(2,"Double",null);
	var_Items.set_CellValue(h,1,3);
axG2antt1.EndUpdate();

1620
How can I specify just a few fonts in a FontType editor
axG2antt1.BeginUpdate();
axG2antt1.DefaultItemHeight = 22;
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exRowLines;
EXG2ANTTLib.Editor var_Editor = (axG2antt1.Columns.Add("Fonts") as EXG2ANTTLib.Column).Editor;
	var_Editor.EditType = EXG2ANTTLib.EditTypeEnum.FontType;
	var_Editor.ClearItems();
	var_Editor.AddItem(0,"Calibri",null);
	var_Editor.AddItem(1,"Arial",null);
	var_Editor.AddItem(2,"Rockwell",null);
	var_Editor.AddItem(3,"Tahoma",null);
	var_Editor.SortItems(true,null);
	var_Editor.DropDownRows = 4;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem("Tahoma");
axG2antt1.EndUpdate();

1619
How can I show only the working-hours in chart and histogram panels

axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Tasks");
axG2antt1.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,40);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("6/20/2005",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 64;
	var_Chart.HistogramView = EXG2ANTTLib.HistogramViewEnum.exHistogramAllItems;
	var_Chart.LevelCount = 3;
	var_Chart.NonworkingHours = 16253183;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistOverAllocation;
		var_Bar.HistogramPattern = var_Bar.Pattern;
	var_Chart.ShowNonworkingDates = false;
	var_Chart.ShowNonworkingUnits = false;
	var_Chart.ShowNonworkingHours = false;
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.UnitScale = EXG2ANTTLib.UnitEnum.exHour;
	var_Chart.UnitWidth = 4;
	var_Chart.ResizeUnitScale = var_Chart.UnitScale;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task A");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/23/2005 11:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"0.0416666");
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
	h = var_Items.AddItem("Task B");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("6/23/2005 12:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("6/23/2005 16:00:00",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarEffort,"0.0416666");
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarKeepWorkingCount,true);
axG2antt1.EndUpdate();

1618
How do you embed HTML options into the anchor click string
// AnchorClick event - Occurs when an anchor element is clicked.
private void axG2antt1_AnchorClick(object sender, AxEXG2ANTTLib._IG2anttEvents_AnchorClickEvent e)
{
	System.Diagnostics.Debug.Print( e.anchorID.ToString() );
	System.Diagnostics.Debug.Print( e.options.ToString() );
}
//this.axG2antt1.AnchorClick += new AxEXG2ANTTLib._IG2anttEvents_AnchorClickEventHandler(this.axG2antt1_AnchorClick);

axG2antt1.BeginUpdate();
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	(var_Columns.Add("Car") as EXG2ANTTLib.Column).set_Def(EXG2ANTTLib.DefColumnEnum.exCellValueFormat,1);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem("<a mazda_1;options for 1>Mazda <b>1</b></a>");
	var_Items.AddItem("<a mazda_2;options for 2>Mazda <b>2</b></a>");
	var_Items.AddItem("<a mazda_3;options for 3a>Mazda <b>3.a</b></a>");
	var_Items.AddItem("<a mazda_3;options for 3b>Mazda <b>3.b</b></a>");
axG2antt1.EndUpdate();

1617
How do I add a checkbox column (method 2)

// CellStateChanged event - Fired after cell's state has been changed.
private void axG2antt1_CellStateChanged(object sender, AxEXG2ANTTLib._IG2anttEvents_CellStateChangedEvent e)
{
	System.Diagnostics.Debug.Print( "CheckBox Changed:" );
	System.Diagnostics.Debug.Print( axG2antt1.Items.get_CellState(e.item,e.colIndex).ToString() );
}
//this.axG2antt1.CellStateChanged += new AxEXG2ANTTLib._IG2anttEvents_CellStateChangedEventHandler(this.axG2antt1_CellStateChanged);

axG2antt1.BeginUpdate();
(axG2antt1.Columns.Add("Check") as EXG2ANTTLib.Column).set_Def(EXG2ANTTLib.DefColumnEnum.exCellHasCheckBox,true);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_CellState(var_Items.AddItem("Check 1"),0,0);
	var_Items.set_CellState(var_Items.AddItem("Check 2"),0,1);
	var_Items.set_CellState(var_Items.AddItem("Check 3"),0,0);
	var_Items.set_CellState(var_Items.AddItem("Check 4"),0,1);
axG2antt1.EndUpdate();

1616
How do I add a checkbox column (method 1)

// Change event - Occurs when the user changes the cell's content.
private void axG2antt1_Change(object sender, AxEXG2ANTTLib._IG2anttEvents_ChangeEvent e)
{
	System.Diagnostics.Debug.Print( "CheckBox Changed:" );
	System.Diagnostics.Debug.Print( e.newValue.ToString() );
}
//this.axG2antt1.Change += new AxEXG2ANTTLib._IG2anttEvents_ChangeEventHandler(this.axG2antt1_Change);

axG2antt1.BeginUpdate();
EXG2ANTTLib.Column var_Column = (axG2antt1.Columns.Add("Check") as EXG2ANTTLib.Column);
	EXG2ANTTLib.Editor var_Editor = var_Column.Editor;
		var_Editor.EditType = EXG2ANTTLib.EditTypeEnum.CheckValueType;
		var_Editor.set_Option(EXG2ANTTLib.EditorOptionEnum.exCheckValue2,1);
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddItem(0);
	var_Items.AddItem(1);
	var_Items.AddItem(0);
	var_Items.AddItem(1);
axG2antt1.EndUpdate();

1615
How do I change the progress bar's appearance

EXG2ANTTLib.Appearance var_Appearance = axG2antt1.VisualAppearance;
	var_Appearance.Add(1,"c:\\exontrol\\images\\normal.ebn");
	var_Appearance.Add(2,"c:\\exontrol\\images\\pushed.ebn");
EXG2ANTTLib.Editor var_Editor = (axG2antt1.Columns.Add("Progress") as EXG2ANTTLib.Column).Editor;
	var_Editor.EditType = EXG2ANTTLib.EditTypeEnum.ProgressBarType;
	var_Editor.set_Option(EXG2ANTTLib.EditorOptionEnum.exProgressBarBackColor,16777216);
	var_Editor.set_Option(EXG2ANTTLib.EditorOptionEnum.exProgressBarMarkTicker,33554432);
axG2antt1.Items.AddItem(33);

1614
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 3)

axG2antt1.BeginUpdate();
axG2antt1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAEGg4BVEIQAAYAQGKIYBkAKBQAGaAoDDMOQwQwAAxjGKEEwsACEIrjKCRShyCYZRhGcTSBCIZBqEqSZLiEZRQCWIAzATGYBRfIUEgjBM6ExwG78e" +
"gBHp/ZpkACIJJAaRjHQdJxGKKMQB9DIhCZpeKhWgkKIJBzOEyBRC4ERBGqNGrsIgLEqWZpnWhaNpWXYTLyBN64LhuK46g53O6wLxvK6hEr2dJ/YBcIAOfghf4NQ7EMRx" +
"LC8Mw3BDvYDkOAABAIgI=");
(axG2antt1.GetOcx() as EXG2ANTTLib.G2antt).SelBackColor = 0x1fffffe;
axG2antt1.SelForeColor = Color.FromArgb(0,0,0);
(axG2antt1.GetOcx() as EXG2ANTTLib.G2antt).SelBackColor = 0x1000000;
axG2antt1.ShowFocusRect = false;
axG2antt1.Columns.Add("Items");
axG2antt1.DefaultItemHeight = 22;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_ItemBackColor(var_Items.AddItem("red"),(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
	var_Items.set_ItemBackColor(var_Items.AddItem("blue"),(uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255)));
	var_Items.set_ItemBackColor(var_Items.AddItem("green"),(uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0)));
axG2antt1.EndUpdate();

1613
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 2)

axG2antt1.BeginUpdate();
axG2antt1.SelBackMode = EXG2ANTTLib.BackModeEnum.exTransparent;
axG2antt1.DefaultItemHeight = 22;
axG2antt1.ShowFocusRect = false;
axG2antt1.Columns.Add("Items");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_ItemBackColor(var_Items.AddItem("red"),(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
	var_Items.set_ItemBackColor(var_Items.AddItem("blue"),(uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255)));
	var_Items.set_ItemBackColor(var_Items.AddItem("green"),(uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0)));
axG2antt1.EndUpdate();

1612
I have the rows with different background color, and when I select the item it takes the color of the SelBackColor, and therefore is no longer visible behind the color. Is there any option to make the item's color being visible (method 1)

axG2antt1.BeginUpdate();
axG2antt1.SelBackColor = axG2antt1.BackColor;
axG2antt1.SelForeColor = axG2antt1.ForeColor;
axG2antt1.DefaultItemHeight = 22;
axG2antt1.ShowFocusRect = true;
axG2antt1.Columns.Add("Items");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_ItemBackColor(var_Items.AddItem("red"),(uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0)));
	var_Items.set_ItemBackColor(var_Items.AddItem("blue"),(uint)ColorTranslator.ToWin32(Color.FromArgb(0,0,255)));
	var_Items.set_ItemBackColor(var_Items.AddItem("green"),(uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0)));
axG2antt1.EndUpdate();

1611
The BeforeExpandItem event is fired when clicking the drop down filter button. What we can do to prevent that

// BeforeExpandItem event - Fired before an item is about to be expanded (collapsed).
private void axG2antt1_BeforeExpandItem(object sender, AxEXG2ANTTLib._IG2anttEvents_BeforeExpandItemEvent e)
{
	System.Diagnostics.Debug.Print( "BeforeExpandItem" );
	System.Diagnostics.Debug.Print( e.item.ToString() );
	axG2antt1.Items.InsertItem(e.item,null,"new child");
}
//this.axG2antt1.BeforeExpandItem += new AxEXG2ANTTLib._IG2anttEvents_BeforeExpandItemEventHandler(this.axG2antt1_BeforeExpandItem);

axG2antt1.BeginUpdate();
axG2antt1.LinesAtRoot = EXG2ANTTLib.LinesAtRootEnum.exLinesAtRoot;
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	EXG2ANTTLib.Column var_Column = (var_Columns.Add("Items") as EXG2ANTTLib.Column);
		var_Column.DisplayFilterButton = true;
		var_Column.FilterList = EXG2ANTTLib.FilterListEnum.exRootItems;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.set_ItemHasChildren(var_Items.InsertItem(null,null,"Group 1"),true);
	var_Items.set_ItemHasChildren(var_Items.InsertItem(null,null,"Group 2"),true);
axG2antt1.EndUpdate();

1610
How can identify when I clicked Hour, Month, or Year of the time-scale overview

// OverviewZoom event - Occurs once the user selects a new time scale unit in the overview zoom area.
private void axG2antt1_OverviewZoom(object sender, EventArgs e)
{
	System.Diagnostics.Debug.Print( "UnitScale: " );
	System.Diagnostics.Debug.Print( axG2antt1.Chart.UnitScale.ToString() );
}
//this.axG2antt1.OverviewZoom += new EventHandler(this.axG2antt1_OverviewZoom);

EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.OverviewVisible = EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.AllowOverviewZoom = EXG2ANTTLib.OverviewZoomEnum.exAlwaysZoom;

1609
How can define a minimum and maximum in a column SpinType
EXG2ANTTLib.Columns var_Columns = axG2antt1.Columns;
	EXG2ANTTLib.Editor var_Editor = (var_Columns.Add("SpinType between 5 and 150") as EXG2ANTTLib.Column).Editor;
		var_Editor.EditType = EXG2ANTTLib.EditTypeEnum.SliderType;
		var_Editor.Numeric = EXG2ANTTLib.NumericEnum.exInteger;
		var_Editor.set_Option(EXG2ANTTLib.EditorOptionEnum.exSliderWidth,0);
		var_Editor.set_Option(EXG2ANTTLib.EditorOptionEnum.exSliderMin,5);
		var_Editor.set_Option(EXG2ANTTLib.EditorOptionEnum.exSliderMax,150);
axG2antt1.Items.AddItem(50);

1608
How I can change the title of the time-scale overview. (Example: Month by 'Mes', Day by 'Dia')

EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,128);
	var_Chart.LevelCount = 2;
	var_Chart.OverviewVisible = EXG2ANTTLib.OverviewVisibleEnum.exOverviewShowAllVisible;
	var_Chart.AllowOverviewZoom = EXG2ANTTLib.OverviewZoomEnum.exAlwaysZoom;
	var_Chart.OverviewZoomCaption = "Aņo|||Mes|||Dia|||";
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exHalfYear,"");
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exQuarterYear,"");
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exThirdMonth,"");
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exWeek,"");
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exHour,"");
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exMinute,"");
	var_Chart.set_Label(EXG2ANTTLib.UnitEnum.exSecond,"");

1607
Is it possible to set a fixed wide for the Items List Arrea, so that when changing the Form.width, the Items List Arrea be constant and therefor changing the Chart Area-wide
axG2antt1.OnResizeControl = EXG2ANTTLib.OnResizeControlEnum.exResizeChart;

1606
How can I clear the colors for all bars at once
axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
axG2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axG2antt1.Chart.set_PaneWidth(false,64);
axG2antt1.Debug = true;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.set_ItemBar(h,"A",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,65280);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
	var_Items.set_ItemBar(0,"<*>",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,0);
axG2antt1.EndUpdate();

1605
How can I change the colors for all bars at once
axG2antt1.BeginUpdate();
axG2antt1.Columns.Add("Task");
axG2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axG2antt1.Chart.set_PaneWidth(false,64);
axG2antt1.Debug = true;
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	int h = var_Items.AddItem("Task 1");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"A",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/5/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B1",null);
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/17/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"B2",null);
	var_Items.AddBar(var_Items.AddItem("Task 2"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K3",null);
	var_Items.AddBar(var_Items.AddItem("Task 4"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),"K4",null);
	var_Items.set_ItemBar(0,"<*>",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
axG2antt1.EndUpdate();

1604
How can I show my custom bars in the histogram (method 3)

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.LevelCount = 2;
	var_Chart.AllowLinkBars = false;
	var_Chart.DrawGridLines = EXG2ANTTLib.GridLinesEnum.exAllLines;
	var_Chart.FirstVisibleDate = Convert.ToDateTime("12/31/2000",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 64;
	var_Chart.set_PaneWidth(false,128);
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars["Task"];
		var_Bar.HistogramType = EXG2ANTTLib.HistogramTypeEnum.exHistCumulative;
		var_Bar.HistogramItems = 6;
		var_Bar.HistogramPattern = var_Bar.Pattern;
		var_Bar.HistogramCumulativeOriginalColorBars = EXG2ANTTLib.HistogramCumulativeOriginalColorBarsEnum.exKeepOriginalColor;
		var_Bar.OverlaidType = EXG2ANTTLib.OverlaidBarsTypeEnum.exOverlaidBarsOffset;
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h = var_Items.AddItem("Item 3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
axG2antt1.EndUpdate();

1603
How can I show my custom bars in the histogram (method 2)

axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,64);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 32;
	var_Chart.Bars["Task"].HistogramPattern = EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	int h = var_Items.AddItem("Item 3");
	var_Items.AddBar(h,"Task",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.set_ItemBar(h,"",EXG2ANTTLib.ItemBarPropertyEnum.exBarColor,255);
axG2antt1.EndUpdate();

1602
How can I show my custom bars in the histogram (method 1)
axG2antt1.BeginUpdate();
EXG2ANTTLib.Chart var_Chart = axG2antt1.Chart;
	var_Chart.set_PaneWidth(false,64);
	var_Chart.FirstVisibleDate = Convert.ToDateTime("1/1/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
	var_Chart.HistogramVisible = true;
	var_Chart.HistogramHeight = 32;
	var_Chart.Bars["Task"].HistogramPattern = EXG2ANTTLib.PatternEnum.exPatternBDiagonal;
	EXG2ANTTLib.Bar var_Bar = var_Chart.Bars.Copy("Task","MyBar");
		var_Bar.HistogramPattern = EXG2ANTTLib.PatternEnum.exPatternFDiagonal;
		var_Bar.Color = (uint)ColorTranslator.ToWin32(Color.FromArgb(255,0,0));
		var_Bar.HistogramColor = var_Bar.Color;
axG2antt1.Columns.Add("Column");
EXG2ANTTLib.Items var_Items = axG2antt1.Items;
	var_Items.AddBar(var_Items.AddItem("Item 1"),"Task",Convert.ToDateTime("1/2/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/4/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 2"),"Task",Convert.ToDateTime("1/3/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/7/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
	var_Items.AddBar(var_Items.AddItem("Item 3"),"MyBar",Convert.ToDateTime("1/8/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),Convert.ToDateTime("1/12/2001",System.Globalization.CultureInfo.GetCultureInfo("en-US")),null,null);
axG2antt1.EndUpdate();

1601
Do you have any Fit-To-Page options when printing the control

// AddItem event - Occurs after a new Item has been inserted to Items collection.
private void axG2antt1_AddItem(object sender, AxEXG2ANTTLib._IG2anttEvents_AddItemEvent e)
{
	EXG2ANTTLib.Items var_Items = axG2antt1.Items;
		var_Items.AddBar(e.item,"Task",var_Items.get_CellValue(e.item,2),var_Items.get_CellValue(e.item,4),null,null);
}
//this.axG2antt1.AddItem += new AxEXG2ANTTLib._IG2anttEvents_AddItemEventHandler(this.axG2antt1_AddItem);

axG2antt1.BeginUpdate();
axG2antt1.ColumnAutoResize = false;
axG2antt1.ContinueColumnScroll = false;
// Add 'Microsoft ActiveX Data Objects 6.1 Library(msado15.dll)' reference to your project.
ADODB.Recordset rs = new ADODB.Recordset();
	rs.Open("Orders","Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Program Files\\Exontrol\\ExG2antt\\Sample\\Access\\misc.accdb",ADODB.CursorTypeEnum.adOpenStatic,ADODB.LockTypeEnum.adLockOptimistic,0);
axG2antt1.DataSource = (rs as ADODB.Recordset);
axG2antt1.Chart.FirstVisibleDate = Convert.ToDateTime("8/4/1994",System.Globalization.CultureInfo.GetCultureInfo("en-US"));
axG2antt1.EndUpdate();
// Add 'ExPrint 1.0 Control Library(ExPrint.dll)' reference to your project.
EXPRINTLib.Print var_Print = new EXPRINTLib.Print();
	var_Print.Options = "FitToPage = On";
	var_Print.PrintExt = (axG2antt1.GetOcx() as EXG2ANTTLib.G2antt);
	var_Print.Preview();